package com.codingInn.web.view;

import org.springframework.web.servlet.View;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public class TudouReview implements View {
	@Override
	public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
		StringBuffer stringBuffer = new StringBuffer();
		String name = request.getParameter("name");
		String info = (String)model.get("info");
		stringBuffer.append("<h1>" + name + info + "</h1>");
		response.getWriter().write(stringBuffer.toString());
	}
}
